// This file was decompiled using VCSCM.ini published on 2021-01-30
{$CLEO .cs}

03A4: script_name 'NITRYX2' 

//0055: put_player $PLAYER_CHAR at -48.2068 -1387.8858 10.0 

:Noname_84
0001: wait 500 ms 
00D6: if or
00F6:   player $player_char 0 -60.2357 -1399.893 10.4566 radius 50.0 50.0 50.0
00F6:   player $player_char 0 -60.2357 -1399.893 10.4566 radius 50.0 50.0 50.0
00F7:   player $player_char sphere 0 near_point_in_car -60.2357 -1399.893 10.4566 radius 50.0 50.0 50.0 
004D: jump_if_false @Noname_84 



0247: load_model 1393  
0001: wait 100 ms   
038B: load_requested_models 
//11.706
029B: 0@ = init_object 1393 at -52.988 -1398.86 15.206    
0392: make_object 0@ moveable 1 

:Noname_841
 0006: 1@ = 0 // @ = int

:Noname_842
0001: wait 500 ms 
00D6: if and
80F6:  not player $player_char 0 -60.2357 -1399.893 10.4566 radius 50.0 50.0 50.0
80F6:  not player $player_char 0 -60.2357 -1399.893 10.4566 radius 50.0 50.0 50.0
80F7:  not player $player_char sphere 0 near_point_in_car -60.2357 -1399.893 10.4566 radius 50.0 50.0 50.0 
then
0108: destroy_object 0@
0249: release_model 1393
0002: jump @Noname_84  
end 



0001: wait 500 ms 
00D6: if 
00F7:   player $player_char sphere 0 near_point_in_car -60.2357 -1399.893 10.4566 radius 2.5 7.0 5.0 
004D: jump_if_false @Noname_841



03C1: 2@ = player $PLAYER_CHAR car_no_save 

if or
0137:   car 2@ model == 6137
0137:   car 2@ model == 6138
0137:   car 2@ model == 156 
0137:   car 2@ model == 162 
0137:   car 2@ model == 146 
0137:   car 2@ model == 150
0137:   car 2@ model == 168
then 
    00BC: show_text_highpriority GXT 'NITROAL' time 3000 flag 1
    jump @Noname_842
end   

if or  
0137:   car 2@ model == 216
0137:   car 2@ model == 6154
then 
    00BC: show_text_highpriority GXT 'NITROAL' time 3000 flag 1
    jump @Noname_842
end 



00D6: if
810A:  not player $PLAYER_CHAR money > 49
then
00BC: show_text_highpriority GXT 'NITROPR' time 3000 flag 1
0002: jump @Noname_842 
end
 
00D6: if 
0039:   1@ == 0 // @ == int 
004D: jump_if_false @Noname_842 


015F: set_camera_position -44.2344 -1407.8256 15.0 rotation 0.0 0.0 0.0  
0001: wait 150 ms
0157: camera_on_player $PLAYER_CHAR mode 15 switchstyle 2


018D: 6@ = create_sound 2 at -52.988 -1398.86 15.206  

0519: lock_vehicle 2@ in_current_position 1  
:pstnws_890 
    
0001: wait 0 ms  
00D6: if 
034E: move_object 0@ to -52.988 -1398.86 11.706 speed 0.0 0.0 0.05 collision_check 0 
004D: jump_if_false @pstnws_890  
018E: stop_sound 6@ 


0001: wait 1500 ms  


018D: 6@ = create_sound 2 at -52.988 -1398.86 15.206    
:pstnws_8901 
    
0001: wait 0 ms  
00D6: if 
034E: move_object 0@ to -52.988 -1398.86 15.206 speed 0.0 0.0 0.05 collision_check 0 
004D: jump_if_false @pstnws_8901 
018E: stop_sound 6@ 


0006: 1@ = 1 // @ = int

03C1: 2@ = player $PLAYER_CHAR car_no_save 
05E7: 2@ = vehicle 2@ struct
2@ += 0x5B0 //m_fDoomAngle
05DF: write_memory 2@ size 4 value 5000.0 virtual_protect 1
0109: player $PLAYER_CHAR money += -50

03C1: 2@ = player $PLAYER_CHAR car_no_save
0519: lock_vehicle 2@ in_current_position 0

00BC: show_text_highpriority GXT 'NITROUS' time 3000 flag 1
015A: restore_camera


0002: jump @Noname_842  
